We don't usually show notification banners while the monitor is in
fullscreen, but when we do - the notification is urgent - we should
actually show the banner, even if the top-most window is unredirected.
To achieve that, disable unredirection while the banner is showing.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/430
}
this._banner = this._notification.createBanner();
- this._bannerClickedId = this._banner.connect('done-displaying',
- this._escapeTray.bind(this));
+ this._bannerClickedId = this._banner.connect('done-displaying', () => {
+ Meta.enable_unredirect_for_display(global.display);
+ this._escapeTray();
+ });
this._bannerUnfocusedId = this._banner.connect('unfocused', () => {
this._updateState();
});
this._bannerBin.y = -this._banner.actor.height;
this.actor.show();
+ Meta.disable_unredirect_for_display(global.display);
this._updateShowingNotification();
let [x, y, mods] = global.get_pointer();